package com.jnc.web.biz.system.mapper;

import com.jnc.core.base.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Auther: jjn
 * @Date: 2020/7/31
 * @Desc:
 */
@Mapper
public interface RoleMapper {
    public List<Role> queryRole(Role record);
    public Role getRole(Integer roleId);
    public List<Role> checkRole(Role record);
    public int deleteRole(List<Integer> roleIds);
    public int addRole(Role record);
    public int editRole(Role record);
    public List<String> getRoleCodeByUser(Integer userId);
    public int deleteUserRole(List<Integer> roleIds);
    public int deleteRoleMenu(List<Integer> roleIds);
    public int addRoleMenu(Map<String, Object> map);

}
